package chai.ning.date;

import java.util.Date;

public class DateTest1 {
	
	
	public static void main(String[] args) {
		
	long s =  System.currentTimeMillis();
	System.out.println(s);		//1598927412954
	
	long m = System.currentTimeMillis();
	System.out.println(m);		//598927412955
	
	Date d = new Date();		//该行代码执行时间就是Date实例内部所表示的时间
	System.out.println( d );	//Tue Sep 01 10:40:23 CST 2020
	
	Date b = new Date();
	System.out.println(b);		//Tue Sep 01 10:40:23 CST 2020

	Date f = new Date( 0L );
	System.out.println( f );	//Thu Jan 01 08:00:00 CST 1970
	
	Date g = new Date( 10000L );
	System.out.print( g );		//Thu Jan 01 08:00:10 CST 1970
	}					
}
